import {
    request
} from "./request";
import qs from "qs";


//  添加厂商
export function addFactory(obj) {
    return request({
        url: "Scfactory/addFactory",
        method: "post",
        data: obj
    });
}
//  获取厂商
export function getFactory(obj) {
    return request({
        url: "Scfactory/getFactory",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 厂商启用
export function disableFactory(obj) {
    return request({
        url: "Scfactory/updateFactoryStatus",
        method: "post",
        data: qs.stringify(obj)
    });
}
//厂商禁用
export function enableFactory(obj) {
    return request({
        url: "Scfactory/updateFactoryStatus",
        method: "post",
        data: qs.stringify(obj)
    });
}
//厂商修改
export function updateFactory(obj) {
    return request({
        url: "Scfactory/updateFactoryName",
        method: "post",
        data: qs.stringify(obj)
    });
}